package com.help10000.rms.ui.adapter;

import android.content.Context;

import com.amir.common.holder.CommonViewHolder;
import com.amir.common.mvp.base.BaseRecyclerAdapter;
import com.help10000.rms.R;

import java.util.List;

public class SelectOrderStatusAdapter extends BaseRecyclerAdapter<String> {

    public SelectOrderStatusAdapter(Context context, List<String> dataList, int layoutId) {
        super(context, dataList, layoutId);
    }

    @Override
    protected void bindData(CommonViewHolder holder, String data, int position) {
        holder.setText(R.id.tv_name,data);
        holder.setOnClickListener(R.id.ll_root, v -> {
            if (mOnItemClickListener!= null){
                mOnItemClickListener.onItem(position);
            }
        });
    }
}
